package utils.enums;

public enum BankAccountStatusEnum {
	ZC("0","正常"),DJ("1","冻结"),XH("2","销户");
	private String key; 
	private String value; 
	
	private BankAccountStatusEnum(String type, String desc) { 
		key = type;
		value = desc;
	}

	public String getKey() {
		return key;
	}
	public String getValue() {
		return value;
	}

	public static BankAccountStatusEnum getInstance(String s) {
		BankAccountStatusEnum[] allStatus = BankAccountStatusEnum.values();
		for (BankAccountStatusEnum ws : allStatus) {
			if (ws.getKey().equalsIgnoreCase(s)) {
				return ws;
			}
		}
		throw new IllegalArgumentException("值非法，没有符合课程状态的枚举对象");
	} 
}
